package com.szrt.javaweb;

import java.io.Serializable;

import javax.servlet.http.HttpSessionActivationListener;
import javax.servlet.http.HttpSessionEvent;

public class HttpSessionListener 

	implements HttpSessionActivationListener,Serializable{
	
	
	private String ymd;
	

	public String getYmd() {
		return ymd;
	}

	public void setYmd(String ymd) {
		this.ymd = ymd;
	}

	private static final long serialVersionUID = -4599357418403667065L;

	/**
	 * 从内存到硬盘
	 */
	@Override
	public void sessionWillPassivate(HttpSessionEvent se) {
		System.out.println("从内存到硬盘....");
		
	}

	/**
	 * 
	 * 从硬盘到内存
	 */
	
	@Override
	public void sessionDidActivate(HttpSessionEvent se) {
		System.out.println("从硬盘到内存....");
		
	}

}
